/*
 * Copyright [vega-ai-sdk] [rightbrain.art]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * According to vega feature, we modify some class，comment, field name, etc.
 */


package com.rightbrain.vegaai.tool.sdk.common;

/**
 * Constants.
 */
public class Constants {
    /**
     * HTTP status code indicating that preconditions failed and thus the
     * request failed.
     */
    public static final int FAILED_PRECONDITION_STATUS_CODE = 412;

    /**
     * Kilobytes
     */
    public static final int KB = 1024;

    /**
     * Megabytes
     */
    public static final int MB = 1024 * KB;

    /**
     * Gigabytes
     */
    public static final long GB = 1024 * MB;

    /**
     * Represents a null version ID
     */
    public static final String NULL_VERSION_ID = "null";

    /**
     * URL encoding for object keys when list object
     */
    public static final String URL_ENCODING = "url";

    /**
     * Default encoding used for url encode
     */
    public static final String DEFAULT_ENCODING = "UTF-8";

    public static final String ISO_8859_1_ENCODING = "ISO-8859-1";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * get /rightbrain/api/getTicket.
     */
    public static final String GET_TICKET = "/rightbrain/api/getTicket";

    /**
     * get /rightbrain/lora/getLoraModels/v1.
     */
    public static final String GET_LORA_MODELS = "/rightbrain/api/getLoraCodeByName";

    /**
     * post /rightbrain/text2image/create.
     */
    public static final String TEXT_2_IMAGE = "/rightbrain/api/text2image/create";

    /**
     * post /rightbrain/api/text2image/getImage.
     */
    public static final String GET_TEXT_2_IMAGE = "/rightbrain/api/text2image/getImage";

    /**
     * post /rightbrain/text2image/create.
     */
    public static final String IMAGE_2_IMAGE = "/rightbrain/api/image2image/create";

    /**
     * post /rightbrain/api/image2image/getImage.
     */
    public static final String GET_IMAGE_2_IMAGE = "/rightbrain/api/image2image/getImage";
}
